BASE_DIR    	=   source

all: buildall log_static log_dynamic done

buildall:
	@echo " "
	@echo "****************************************"
	@echo "*******  Building Log Library   ********"
	@echo "****************************************"
	@echo " "

log_static:
	@echo " "
	@echo "******   Building static library  ******"
	@echo " "
	(cd ./$(BASE_DIR); $(MAKE) static)

log_dynamic:
	@echo " "
	@echo "******  Building dynamic library  ******"
	@echo " "
	(cd ./$(BASE_DIR); $(MAKE) shared)
	
done:
	@echo " "
	@echo "*****************************************"
	@echo "*******  Library Creation Done   ********"
	@echo "*****************************************"
	@echo " "

clean:
	@echo " "
	@echo "*****************************************"
	@echo "*******     Invoking Cleanup     ********"
	@echo "*****************************************"
	@echo " "
	(cd $(BASE_DIR); $(MAKE) clean)
	@echo " "
	@echo "*****************************************"
	@echo "*******       Cleanup done       ********"
	@echo "*****************************************"
	@echo " "

cleanapp:
	@echo " "
	@echo "*****************************************"
	@echo "******* Application Only Cleanup ********"
	@echo "*****************************************"
	@echo " "
	(cd $(BASE_DIR); $(MAKE) cleanapp)
	@echo " "
	@echo "*****************************************"
	@echo "******* Application Cleanup done ********"
	@echo "*****************************************"
	@echo " "